package com.qf.day07.weapon;

public class Dagger extends Weapon{
    private int attackSpeed;//攻速


    public Dagger() {
    }

    public Dagger(int attackSpeed) {
        this.attackSpeed = attackSpeed;
    }

    public Dagger(String name, int attack, int attackSpeed) {
        super(name, attack);
        this.attackSpeed = attackSpeed;
    }

    /**
     * 获取
     * @return attackSpeed
     */
    public int getAttackSpeed() {
        return attackSpeed;
    }

    /**
     * 设置
     * @param attackSpeed
     */
    public void setAttackSpeed(int attackSpeed) {
        this.attackSpeed = attackSpeed;
    }

    @Override
    public String toString() {
        return   super.toString()+'\t'+'\t'+'\t'+'\t'+"Dagger{" +
                "attackSpeed=" + attackSpeed +
                "}";
    }
}
